package com.workcell.workdata.xthings.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.workcell.workdata.xthings.dto.*;
import com.workcell.workdata.xthings.entity.BaseSerialDevice;

/**
 * @author Admin
 * @description 针对表【t_base_serial_device(串口设备表)】的数据库操作Service
 * @createDate 2023-03-17 11:36:54
 */
public interface BaseSerialDeviceService extends IService<BaseSerialDevice> {

    boolean updateBaseSerialDeviceById(BaseSerialDevice baseSerialDevice);

    boolean updateStateById(BaseSerialDevice baseSerialDevice);

    boolean removeBaseSerialDeviceById(String dtId);

    Page<BaseSerialDevice> getBaseSerialDeviceVaguePage(BaseVo baseVo);

    PageInfo<SerialDeviceMonitorDto> serialDeviceMonitorInfoPage(PageVo pageVO, DeviceMonitorQueryVo deviceMonitorQueryVo);

    PageInfo<SerialDeviceMonitorBindDto> serialDeviceMonitorBindPage(PageVo pageVO, DeviceMonitorBindQueryVo deviceMonitorQueryVo);
}
